Optimal. Leaf size=135 \[ -\frac {x \tanh ^{-1}(a x)}{a^3}+\frac {\tanh ^{-1}(a x)^2}{2 a^4}-\frac {x^2 \tanh ^{-1}(a x)^2}{2 a^2}-\frac {\tanh ^{-1}(a x)^3}{3 a^4}+\frac {\tanh ^{-1}(a x)^2 \log \left (\frac {2}{1-a x}\right )}{a^4}-\frac {\log \left (1-a^2 x^2\right )}{2 a^4}+\frac {\tanh ^{-1}(a x) \text {PolyLog}\left (2,1-\frac {2}{1-a x}\right )}{a^4}-\frac {\text {PolyLog}\left (3,1-\frac {2}{1-a x}\right )}{2 a^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.21, antiderivative size = 135, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 9, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.409, Rules used = {6127, 6037,
6021, 266, 6095, 6131, 6055, 6205, 6745} \begin {gather*} -\frac {\text {Li}_3\left (1-\frac {2}{1-a x}\right )}{2 a^4}+\frac {\text {Li}_2\left (1-\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)}{a^4}-\frac {\tanh ^{-1}(a x)^3}{3 a^4}+\frac {\tanh ^{-1}(a x)^2}{2 a^4}+\frac {\log \left (\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)^2}{a^4}-\frac {x \tanh ^{-1}(a x)}{a^3}-\frac {x^2 \tanh ^{-1}(a x)^2}{2 a^2}-\frac {\log \left (1-a^2 x^2\right )}{2 a^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 6021
Rule 6037
Rule 6055
Rule 6095
Rule 6127
Rule 6131
Rule 6205
Rule 6745
Rubi steps
\begin {align*} \int \frac {x^3 \tanh ^{-1}(a x)^2}{1-a^2 x^2} \, dx &=-\frac {\int x \tanh ^{-1}(a x)^2 \, dx}{a^2}+\frac {\int \frac {x \tanh ^{-1}(a x)^2}{1-a^2 x^2} \, dx}{a^2}\\ &=-\frac {x^2 \tanh ^{-1}(a x)^2}{2 a^2}-\frac {\tanh ^{-1}(a x)^3}{3 a^4}+\frac {\int \frac {\tanh ^{-1}(a x)^2}{1-a x} \, dx}{a^3}+\frac {\int \frac {x^2 \tanh ^{-1}(a x)}{1-a^2 x^2} \, dx}{a}\\ &=-\frac {x^2 \tanh ^{-1}(a x)^2}{2 a^2}-\frac {\tanh ^{-1}(a x)^3}{3 a^4}+\frac {\tanh ^{-1}(a x)^2 \log \left (\frac {2}{1-a x}\right )}{a^4}-\frac {\int \tanh ^{-1}(a x) \, dx}{a^3}+\frac {\int \frac {\tanh ^{-1}(a x)}{1-a^2 x^2} \, dx}{a^3}-\frac {2 \int \frac {\tanh ^{-1}(a x) \log \left (\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{a^3}\\ &=-\frac {x \tanh ^{-1}(a x)}{a^3}+\frac {\tanh ^{-1}(a x)^2}{2 a^4}-\frac {x^2 \tanh ^{-1}(a x)^2}{2 a^2}-\frac {\tanh ^{-1}(a x)^3}{3 a^4}+\frac {\tanh ^{-1}(a x)^2 \log \left (\frac {2}{1-a x}\right )}{a^4}+\frac {\tanh ^{-1}(a x) \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^4}-\frac {\int \frac {\text {Li}_2\left (1-\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{a^3}+\frac {\int \frac {x}{1-a^2 x^2} \, dx}{a^2}\\ &=-\frac {x \tanh ^{-1}(a x)}{a^3}+\frac {\tanh ^{-1}(a x)^2}{2 a^4}-\frac {x^2 \tanh ^{-1}(a x)^2}{2 a^2}-\frac {\tanh ^{-1}(a x)^3}{3 a^4}+\frac {\tanh ^{-1}(a x)^2 \log \left (\frac {2}{1-a x}\right )}{a^4}-\frac {\log \left (1-a^2 x^2\right )}{2 a^4}+\frac {\tanh ^{-1}(a x) \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^4}-\frac {\text {Li}_3\left (1-\frac {2}{1-a x}\right )}{2 a^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 112, normalized size = 0.83 \begin {gather*} -\frac {a x \tanh ^{-1}(a x)-\frac {1}{2} \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2-\frac {1}{3} \tanh ^{-1}(a x)^3-\tanh ^{-1}(a x)^2 \log \left (1+e^{-2 \tanh ^{-1}(a x)}\right )-\log \left (\frac {1}{\sqrt {1-a^2 x^2}}\right )+\tanh ^{-1}(a x) \text {PolyLog}\left (2,-e^{-2 \tanh ^{-1}(a x)}\right )+\frac {1}{2} \text {PolyLog}\left (3,-e^{-2 \tanh ^{-1}(a x)}\right )}{a^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 39.98, size = 728, normalized size = 5.39 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \frac {x^{3} \operatorname {atanh}^{2}{\left (a x \right )}}{a^{2} x^{2} - 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} -\int \frac {x^3\,{\mathrm {atanh}\left (a\,x\right )}^2}{a^2\,x^2-1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________